package com.leedsoft.spittr.web;

import com.leedsoft.spittr.service.AopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by leeds on 2017/11/15.
 */
@Controller
@RequestMapping("aop")
public class AopController {
    @Autowired
    private AopService aopService;

    @RequestMapping("testAop")
    @ResponseBody
    public String testAop() {
        String res = aopService.testAop("王聪聪", "第二个参数");
        return res;
    }
}
